﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SqlServerPacker {
	public partial class GetIISSetup : Form {
		public GetIISSetup() {
			InitializeComponent();
		}

		private void button1_Click(object sender, EventArgs e) {

			IISManager iisManager = new IISManager("Microsoft Windows Server 2003", textBox1.Text, textBox2.Text, textBox3.Text);
			iisManager.GetRequiredFiles();
			MessageBox.Show("成功！");
		}

		private void button2_Click(object sender, EventArgs e) {
			if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
				textBox1.Text = openFileDialog1.FileName;
			}
		}

		private void button3_Click(object sender, EventArgs e) {
			if (folderBrowserDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
				textBox2.Text = folderBrowserDialog1.SelectedPath;
			}
		}

		private void button4_Click(object sender, EventArgs e) {
			if (folderBrowserDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
				textBox3.Text = folderBrowserDialog1.SelectedPath;
			}
		}
	}
}
